<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>video</title>
    <style>
      body {
        background: lightgrey;
      }
      #canvas {
        background: #fff;
      }
      .content {
        width: 1200px;
        margin: 0 auto;
      }
      .left {
        float: left;
        margin-right: 50px;
      }
      .right {
        float: left;
      }
      #video {
        display: none;
      }
      #video2 {
        display: none;
      }
      .final-videos{
        background: lightcyan;
        min-height: 200px;
      }
      #finalVideo1{
        margin-right: 50px;
      }
    </style>
  </head>
  <body>
    <div class="content">
      <div class="left">
        <video
          controls
          width="200"
          height="200"
          id="video"
          preload
          src="imgs/1.mp4"
          muted
        ></video>
        <video
          controls
          width="200"
          height="200"
          id="video2"
          preload
          src="imgs/2.mp4"
          muted
        ></video>
      </div>
      <div>
        <canvas id="canvas" width="300" height="300" style="margin-right: 50px">
          不支持canvas
        </canvas>
        <canvas id="canvas2" width="300" height="300"> 不支持canvas </canvas>
      </div>
      5s 后录制完成
      <div class="final-videos"">
        <video
          id="finalVideo1"
          style="display: none"
          controls
        ></video>
        <video id="finalVideo2" style="display: none" controls></video>
      </div>
      <div>
        <button id="transBtn">加转场动画</button>
      </div>
    </div>
  </body>
  <script src="index.js"></script>
</html>
